<?php
$content->assign("formAction", Utils::generateSEOUrl($lang, $section, "save"));

// Options
$contentOptions = array(
	0 => array(
		"text" => "Volver",
		"link" => Utils::generateSEOUrl($lang, $section),
		"icon" => IMAGES_URL."icons/small/white/Home.png"
	),
);
$content->assign("contentOptions", $contentOptions);

$id = $_GET["id"];

$query = "SELECT summary, content AS tourContent FROM tour_content WHERE tour_id = '$id'";
$data = $db->getData(null, $query);
if (is_array($data) && count($data)) {
	$data[0]["id"] = $id;
	foreach ($data[0] as $key => $value) {
		$content->assign($key, stripslashes($value));
	}
}
?>
